package com.kcht.sylyg08.service;

import com.kcht.sylyg08.service.model.Res;
import com.kcth.sylyg08.entity.CommandPer;
import com.kcth.sylyg08.entity.CommandTemp;
import com.kcth.sylyg08.entity.ManualReport;
import com.kcth.sylyg08.entity.ReportStatus;

import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.transaction.Transactional;

/**
 * @program: G08ProductionLine
 * @description 将上报状态置为成功，调用上报方法
 * @author: X.Gao
 * @create: 2019-07-24 11:46
 **/

@RequestScoped
@Transactional()
public class ManualReportHandlerService {

    /**
     * 上报标签信息到Mes系统
     *
     * @Param ManualReport
     */

    @Inject
    private IReportToMes reportToMes;

    public void reportToMes(CommandPer commandPer) {
        reportToMes.report(commandPer);
    }

}
